<?php
/**
 * Description of person
 *
 * @author Flame
 */
class person {

    function __construct($id,$username,$sex,$avatar,$online,$day = false,$month = false,$year = false)
    {
        $this->id = $id;
        $this->username = $username;
        $this->sex = $sex;
        $this->avatar = $avatar;
        $this->online = $online;
        $this->day = $day;
        $this->month = $month;
        $this->year = $year;
    }

    function birthdate()
    {
        
    }

    function is_online()
    {
    global $cfg;
        if($online > (time) - $cfg->get('online_time')) return true;
        else false;
    }
}
?>
